package com.dxd.onlineshop.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserFeedback {

    private Long id;
    private Integer userId;
    private FeedbackType feedbackType;
    private String feedbackContent;
    private LocalDateTime createdAt;

    public enum FeedbackType {
        bug, feature, other
    }

    // 可以根据需要添加自定义构造函数或方法
    public UserFeedback(Integer userId, FeedbackType feedbackType, String feedbackContent) {
        this.userId = userId;
        this.feedbackType = feedbackType;
        this.feedbackContent = feedbackContent;
        this.createdAt = LocalDateTime.now();
    }
}